package root.agent.demo.invoke;


import jakarta.annotation.Resource;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.messages.Message;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.ai.chat.prompt.Prompt;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


public class SpringAiInvoke implements CommandLineRunner {
    @Resource
    public ChatModel dashScopeChatModel;

    @Override
    public void run(String... args) throws Exception {
        String result = dashScopeChatModel.call("你好，我是一鸣,南京有哪里好玩的地方么");
        System.out.println(result);
    }
}
